home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
msqc25t1
/
lstcfl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-12-05
|
565b
|
22 lines
/* lstcfl.c by Tom Harrold Dec., 5,1988 */
/* This program finds and prints all files in the current directory with
the .c extension
*/
#include <dos.h>
main()
{
struct find_t c_file;
/* find first .c file in current directory */
_dos_findfirst ("*.c", _A_NORMAL, &c_file);
printf ("Listing of .c files\n\n");
printf ("file %s is %d bytes long\n",c_file.name, c_file.size);
/* find the rest of the .c files */
while (_dos_findnext(&c_file) == 0)
printf ("file %s is %d bytes long\n",c_file.name,c_file.size);
}